﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
					xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
					xmlns:Chapter10="clr-namespace:FSharp.Chapter10;assembly=FSharpLibrary">
    <LinearGradientBrush x:Key="ClassicBackgroundBrush"
                         StartPoint="0,0"
                         EndPoint="0,1">
        <GradientStop Offset="0"
                      Color="#7d7e7d" />
        <GradientStop Offset="1"
                      Color="#0e0e0e" />
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ClassicBorderBrush"
                     Color="Black" />

    <Style x:Key="{x:Type Chapter10:SkinThemeControl}"
		   TargetType="Chapter10:SkinThemeControl">
		<Setter Property="Background"
				Value="{StaticResource ClassicBackgroundBrush}" />
		<Setter Property="BorderBrush"
				Value="{StaticResource ClassicBorderBrush}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Chapter10:SkinThemeControl">
					<Grid>
						<Border Background="{TemplateBinding Background}"
								BorderBrush="{TemplateBinding BorderBrush}"
								BorderThickness="1"
								CornerRadius="5">
							<ContentPresenter Content="{TemplateBinding Content}"
											  ContentTemplate="{TemplateBinding ContentTemplate}" />
						</Border>
						<TextBlock>Classic Theme</TextBlock>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>